package com.caochenlei.adapter.objectAdapter;

public class PhoneTest {
    public static void main(String[] args) {
        //创建一部手机
        Phone phone = new Phone();
        //用充电器充电（传入220V交流电，传出5V直流电）
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
